<template>
  <view class="container">
    <view class="customer-service-header">
      <view class="logo-placeholder">
        <view class="icon-headset"></view>
      </view>
      <text class="title">客服中心</text>
    </view>
    
    <view class="content">
      <view class="coming-soon-icon">
        <view class="icon-circle"></view>
        <view class="icon-message"></view>
      </view>
      
      <view class="message-box">
        <text class="message-title">功能开发中</text>
        <text class="message-desc">亲爱的用户，客服功能正在努力开发中，敬请期待！</text>
        <view class="divider"></view>
        <text class="contact-info">如有紧急问题，请联系：</text>
        <text class="phone">17633434352</text>
        <text class="email">2871389499@qq.com</text>
      </view>
      
      <button class="back-btn" @tap="goBack">返回上一页</button>
    </view>
  </view>
</template>

<script setup lang="ts">
// 返回上一页
const goBack = () => {
  uni.navigateBack();
};
</script>


<style scoped>
.container {
  min-height: 100vh;
  background-color: #f5f5f5;
  display: flex;
  flex-direction: column;
}

.customer-service-header {
  background: linear-gradient(135deg, #ff9800, #ff5722);
  padding: 30rpx;
  display: flex;
  align-items: center;
  box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.1);
}

.logo-placeholder {
  width: 80rpx;
  height: 80rpx;
  margin-right: 20rpx;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.icon-headset {
  width: 40rpx;
  height: 40rpx;
  border: 3rpx solid #fff;
  border-radius: 50%;
  position: relative;
}

.icon-headset:before {
  content: '';
  position: absolute;
  width: 20rpx;
  height: 10rpx;
  border: 3rpx solid #fff;
  border-bottom: none;
  border-radius: 20rpx 20rpx 0 0;
  top: -12rpx;
  left: 50%;
  transform: translateX(-50%);
}

.icon-headset:after {
  content: '';
  position: absolute;
  width: 10rpx;
  height: 15rpx;
  background: #fff;
  border-radius: 5rpx;
  bottom: -10rpx;
  left: 50%;
  transform: translateX(-50%);
}

.title {
  color: #fff;
  font-size: 36rpx;
  font-weight: bold;
}

.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40rpx;
}

.coming-soon-icon {
  width: 200rpx;
  height: 200rpx;
  position: relative;
  margin-bottom: 40rpx;
}

.icon-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff9800, #ff5722);
  opacity: 0.1;
  position: absolute;
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.1; }
  50% { transform: scale(1.05); opacity: 0.2; }
  100% { transform: scale(0.95); opacity: 0.1; }
}

.icon-message {
  position: absolute;
  width: 120rpx;
  height: 100rpx;
  background-color: #fff;
  border: 4rpx solid #ff5722;
  border-radius: 20rpx;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 8rpx 16rpx rgba(255, 87, 34, 0.15);
}

.icon-message:before {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-left: 20rpx solid transparent;
  border-right: 20rpx solid transparent;
  border-top: 25rpx solid #fff;
  bottom: -20rpx;
  left: 20rpx;
}

.icon-message:after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-left: 20rpx solid transparent;
  border-right: 20rpx solid transparent;
  border-top: 25rpx solid #ff5722;
  bottom: -24rpx;
  left: 20rpx;
  z-index: -1;
}

.message-box {
  background-color: #fff;
  border-radius: 20rpx;
  padding: 40rpx;
  box-shadow: 0 8rpx 24rpx rgba(0, 0, 0, 0.08);
  width: 80%;
  text-align: center;
  margin-bottom: 40rpx;
}

.message-title {
  font-size: 36rpx;
  font-weight: bold;
  color: #333;
  margin-bottom: 20rpx;
  display: block;
}

.message-desc {
  font-size: 28rpx;
  color: #666;
  margin-bottom: 30rpx;
  display: block;
  line-height: 1.6;
}

.divider {
  height: 2rpx;
  background: linear-gradient(to right, transparent, #ff5722, transparent);
  margin: 20rpx auto;
  width: 80%;
}

.contact-info {
  font-size: 24rpx;
  color: #999;
  margin-top: 20rpx;
  display: block;
}

.phone, .email {
  font-size: 28rpx;
  color: #ff5722;
  font-weight: 500;
  margin-top: 10rpx;
  display: block;
}

.back-btn {
  background: linear-gradient(135deg, #ff9800, #ff5722);
  color: #fff;
  font-size: 30rpx;
  padding: 20rpx 60rpx;
  border-radius: 50rpx;
  margin-top: 40rpx;
  box-shadow: 0 6rpx 16rpx rgba(255, 87, 34, 0.3);
}

.back-btn:active {
  transform: scale(0.98);
  opacity: 0.9;
}
</style>
